package cn.jiyun.service.impl;

import cn.jiyun.pojo.Department;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.jiyun.pojo.User;
import cn.jiyun.service.UserService;
import cn.jiyun.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【user】的数据库操作Service实现
* @createDate 2024-10-28 14:33:52
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{
    @Autowired
    private UserMapper userMapper;


    @Override
    public Page<User> findpage(Integer pageNum, Integer pageSize, User user) {
        Page<User> page = new Page<>(pageNum, pageSize);
        List<User> list = userMapper.findpage(page,user);
        page.setRecords(list);
        return page;
    }
}




